package cn.kent.abstractFactoryPattern.yellowHuman;

import cn.kent.abstractFactoryPattern.Human;

/**
 * 为什么要修改成抽象类呢？要定义性别呀
 *
 * @author kent
 * @date 2021/5/8 17:43
 */
public abstract class AbstractYellowHuman implements Human {
    @Override
    public void laugh() {
        System.out.println("黄色人种会笑");
    }

    @Override
    public void cry() {
        System.out.println("黄色人种会哭");
    }

    @Override
    public void talk() {
        System.out.println("黄色人种会说话");
    }
}
